home *** CD-ROM | disk | FTP | other *** search
-
-
-
- pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((3333PPPP)))) pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((3333PPPP))))
-
-
-
- NNNNAAAAMMMMEEEE
- pthread_create - create and start a thread
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
-
- iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((pppptttthhhhrrrreeeeaaaadddd____tttt ****tttthhhhrrrreeeeaaaadddd,,,, pppptttthhhhrrrreeeeaaaadddd____aaaattttttttrrrr____tttt ****aaaattttttttrrrr,,,,
- vvvvooooiiiidddd ****((((****ssssttttaaaarrrrtttt))))((((vvvvooooiiiidddd ****)))),,,, vvvvooooiiiidddd ****aaaarrrrgggg))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _p_t_h_r_e_a_d__c_r_e_a_t_e() function creates a thread with the attributes
- specified by _a_t_t_r, starting execution at the function named _s_t_a_r_t with
- the argument value _a_r_g. A null value of _a_t_t_r causes the thread to be
- created with default attributes. The thread identity is saved in the
- location pointed to by the _t_h_r_e_a_d argument.
-
- A new thread inherits its per-thread signal mask from its creator. No
- signals are pending on the thread when it starts. The thread runs until
- it returns from its _s_t_a_r_t function, calls _p_t_h_r_e_a_d__e_x_i_t(), or acts on a
- cancellation request. The exception is the initial thread which will
- cause the process to exit if it returns from _m_a_i_n(). When the process
- terminates so do all its threads.
-
- For an overview of POSIX threads see _p_t_h_r_e_a_d_s(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- On success, _p_t_h_r_e_a_d__c_r_e_a_t_e() returns zero; otherwise an error number is
- returned:
-
- [[[[EEEEAAAAGGGGAAAAIIIINNNN]]]] The maximum number of threads has been created [see NNNNOOOOTTTTEEEESSSS,
- and _s_e_t_r_l_i_m_i_t()] or there is insufficient memory to create
- the thread.
-
- [[[[EEEEPPPPEEEERRRRMMMM]]]] The calling process lacks sufficient privilege to create a
- thread with these attributes [see
- _p_t_h_r_e_a_d__a_t_t_r__s_e_t_s_c_o_p_e()].
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- pthread_attr_init(3P), pthread_attr_setscope(3P), pthread_exit(3P),
- pthreads(5), setrlimit(2), sysconf(3C).
-
- NNNNOOOOTTTTEEEESSSS
- A thread application can find the thread limit using the _s_y_s_c_o_n_f()
- function with the ____SSSSCCCC____TTTTHHHHRRRREEEEAAAADDDD____TTTTHHHHRRRREEEEAAAADDDDSSSS____MMMMAAAAXXXX option.
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-